import request from '@/utils/request'

const api = {
  query: '/admin/Culture/query',
  add: '/admin/Culture/add',
  edit: '/admin/Culture/edit',
  del: '/admin/Culture/del'
}

export function query (parameter) {
  return request({
    url: api.query,
    method: 'get',
    params: parameter
  })
}

export function add (parameter) {
  return request({
    url: api.add,
    method: 'post',
    data: parameter
  })
}

export function edit (parameter) {
  return request({
    url: api.edit,
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return request({
    url: api.del,
    method: 'delete',
    data: parameter
  })
}
